<%-- 
    Document   : actionUpdateTest
    Created on : Oct 30, 2009, 3:46:58 PM
    Author     : khanhlv_b00554
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
            int id = Integer.parseInt(request.getParameter("TestID"));
            String name = request.getParameter("TestName");
            int time = Integer.parseInt(request.getParameter("TimeTest"));
        %>
        <jsp:useBean id="Obj" class="DAO.DAOAction" scope="page" />
        <%
            if(Obj.updateTest(id, name, time) == true) {
                    response.sendRedirect("../displayTestQuestion.jsp");
                }
            else
                {
                out.println("Khong thanh cong");
            }

        %>
    </body>
</html>
